package com.ruoyi.vbze.mapper;

import java.util.List;
import com.ruoyi.vbze.domain.SamplePoint;
import org.apache.ibatis.annotations.Param;

/**
 * 采样点Mapper接口
 * 
 * @author vbze
 * @date 2023-02-27
 */
public interface SamplePointMapper 
{
    /**
     * 查询采样点
     * 
     * @param id 采样点主键
     * @return 采样点
     */
    public SamplePoint selectSamplePointById(Long id);

    /**
     * 查询采样点
     *
     * @param label 采样点标签
     * @return 采样点
     */
    public SamplePoint selectSamplePointByLabel(String label);


    /**
     * 通过标签和名称/编号查询采样点
     *
     * @param label 采样点标签
     * @return 采样点
     */
    public SamplePoint selectSamplePointByLabelAndPointName(@Param("label") String label, @Param("pointName") String pointName);

    /**
     * 查询采样点列表
     * 
     * @param samplePoint 采样点
     * @return 采样点集合
     */
    public List<SamplePoint> selectSamplePointList(SamplePoint samplePoint);

    /**
     * 新增采样点
     * 
     * @param samplePoint 采样点
     * @return 结果
     */
    public int insertSamplePoint(SamplePoint samplePoint);

    /**
     * 修改采样点
     * 
     * @param samplePoint 采样点
     * @return 结果
     */
    public int updateSamplePoint(SamplePoint samplePoint);

    /**
     * 删除采样点
     * 
     * @param id 采样点主键
     * @return 结果
     */
    public int deleteSamplePointById(Long id);

    /**
     * 批量删除采样点
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSamplePointByIds(Long[] ids);
}
